package chances.epg.data.taglib;

import javax.servlet.jsp.JspException;
import chances.epg.entity.content.EpgScheduleNav;

public class ScheduleNavTag extends ScheduleBaseTag {
	private static final long serialVersionUID = 1L;
	private String var;
	private String channelCode;
	
	@Override
	public int doStartTag() throws JspException {
		this.queryScheduleNav();
		return super.doStartTag();
	}
	
	public void queryScheduleNav(){
		EpgScheduleNav result = this.getScheduleService().getScheduleNavByCode(this.channelCode);
		setResult(result);
	}

	public String getVar() {
		return var;
	}

	public void setVar(String var) {
		this.var = var;
	}

	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}
}
